package Model;

public class Song implements Comparable<Song> {
	
	
	private String Singer;
	private String Title;
	private String[] Text;
	
	
	public Song(){
		Singer="";
		Title="";
		Text=null;		
	}
	
	
	public Song(String s, String ti,String[] te){
		Singer=s;
		Title=ti;
		Text=te;		
	}
	
	
	public String getSinger() {
		return Singer;
	}
	public void setSinger(String singer) {
		Singer = singer;
	}
	public String getTitle() {
		return Title;
	}
	public void setTitle(String title) {
		Title = title;
	}
	public String[] getText() {
		return Text;
	}
	public void setText(String[] text) {
		Text = text;
	}


	@Override
	public int compareTo(Song o) {
		
		if(this.Singer.compareTo(o.Singer)==0)
			return this.Title.compareTo(o.Title);
		
		return this.Singer.compareTo(o.Singer);
	}

}
